// components/rankinglistcomp/rankinglistcomp.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list:Object,
    currentCode:String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goToBookDetailed(e) {
      console.log(e.target.dataset.book);
      wx.navigateTo({
        url: '/pages/bookdetailed/bookdetailed?id='+e.target.dataset.book,
      })
    },

    goToRankingDetails(){
      wx.navigateTo({
        url: `/pages/iconpages/rankingdetails/rankingdetails?text=${this.properties.list.text}&&src=${this.properties.list.detail.action_url}&&code=${this.properties.currentCode}`,
      })
  
    }
  }
})
